package com.kaifamiao.repository;

import com.kaifamiao.entity.User;
import com.kaifamiao.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
@Slf4j
public class BaseRepositoryImpl implements BaseRepository<User> {

    @Autowired
    private UserMapper userMapper;

    @Override
    public int update(User user) {
        log.info( "更新用户" );
        return userMapper.update(user);
    }

}
